package com.coding.mybatis;

import java.util.List;

/**
 * @ClassName SqlSession
 * @Author ykx
 * @Date 2023/12/31 17:31
 * @Version 1.0
 */
public interface SqlSession {
    <E> List<E> selectList(String statementId, Object... parameters) throws Exception;

    <T> T selectOne(String statementId, Object... parameters) throws Exception;

    void close() throws Exception;

    <T> T getMapper(Class<T> clazz);
}
